﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace ExcellentCRM.DataService.Models
{
    /// <summary>
    /// 学员课程记录表
    /// </summary>
    public class StuCourse : BaseModel
    {
        public long StuClientId { get; set; }

        public long CourseId { get; set; }

        public long? CostInfoId { get; set; }

        /// <summary>
        /// 开始上课时间
        /// </summary>
        public DateTime? DateOfStart { get; set; }

        /// <summary>
        /// 上课次数
        /// </summary>
        public int? ClassNumber { get; set; }

        [ForeignKey("StuClientId")]
        public StuClient StuClient { get; set; }

        [ForeignKey("CourseId")]
        public Course Course { get; set; }

        [ForeignKey("CostInfoId")]
        public virtual CostInfo CostInfo { get; set; }
    }
}